package cn.edu.scau.cmi.mazhuanglong.abstractFactory.factory;

import cn.edu.scau.cmi.mazhuanglong.abstractFactory.domainAbstractClass.ConsumerElectronicsDevice;
import cn.edu.scau.cmi.mazhuanglong.abstractFactory.factory.AbstractFactory;
import cn.edu.scau.cmi.mazhuanglong.abstractFactory.factory.WensFactory;
import cn.edu.scau.cmi.mazhuanglong.abstractFactory.factory.TianbangFactory;
import cn.edu.scau.cmi.mazhuanglong.abstractFactory.factory.AonongFactory;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "Wens":
			return new WensFactory();
		case "Tianbang":
			return new TianbangFactory();
		case "Aonong":
			return new AonongFactory();
		}
		return null;

	}

	public abstract ConsumerElectronicsDevice createPork();

	public abstract ConsumerElectronicsDevice createBeef();

	public abstract ConsumerElectronicsDevice createChicken();
}
